﻿using System;
using System.Collections.Generic;
#if DEBUG
using System.Diagnostics;
#endif // #if DEBUG
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using FRL.DebtChased.Extensions;
using FRL.DebtChased.Repository;
using FRL.DebtChased.Silverlight.Library;
using FRL.DebtChased.Silverlight.Library.RichContentService;

namespace FRL.DebtChased.ClientEditor
{

	/// <summary>
	/// Declaration of MainPage class
	/// </summary>
	public partial class MainPage : UserControl,IDebtChasedMainPlugInWindow
	{

		/////////////////////////////////////////////////////////////
		// Attributes

		private static MainPage m_singleton = null;
		public static MainPage Singleton
		{
			get { return m_singleton; }
		}

		/////////////////////////////////////////////////////////////
		// Construction

		public MainPage()
		{

			// Initialize member variables
			m_singleton = this;

			// Initialize resources
			InitializeComponent();

			// Load xaml resources
			new LibrarySession(this);

            ClientEditor.OnMainLoadFinished();
		}

		/////////////////////////////////////////////////////////////
		// Implementation of IDebtChasedMainPlugInWindow

		public void ShowHourglass(bool bTrue)
		{
			// Show/hide hourglass
			hourglassCtrl.IncShowCount(bTrue);
		}

		public void WebsiteMenuClicked(DebtChasedWebsiteMenuCtrl.eMenuItem menuItemId)
		{
			throw new NotImplementedException();
		}

		public void ContactPointButtonClick(PointActiveButton button, int iContactId, Guid contactPointId)
		{
			throw new NotImplementedException();
		}


	}

}
